﻿define([
    'Wjs/Wjs'
],
function () {
    'use strict';

    // Manages the dragged elements
    return Wjs.defineOnce({

        type: 'dragDropManager',

        internal: {

            'static': true,

            construct: function () {

                this.views = []; // The views that are being dragged
            }
        },

        add: function (view) {

            this.views.push(view);
        },

        getViews: function () {

            return this.views;
        },

        clear: function () {

            this.views.length = 0;
        }
    });

});